package com.dzkj.dao;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;

@Component
@Data
public class UserDaoImpl implements UserDao{

    private JdbcTemplate jdbcTemplate;

    @Override
    public void execute(String sql) {
        //执行SQL语句
        jdbcTemplate.execute(sql);
    }
}
